<div style="padding:10px 0px 0px 0px;">
<?php if (count($group_list) > 0) { ?>
	<table border="0" style="width:100%;" cellpadding="0" cellspacing="0">
		<colgroup>
			<col width="50px" />
			<col width="1px" />
			<col />
		</colgroup>
		<tr>
			<td class="grid_header">Id</td>
			<td class="grid_header">&nbsp;</td>
			<td class="grid_header">Group name</td>
		</tr>
		<?php
		foreach ($group_list as $group) { ?>
			<tr>
				<td class="grid_cell"><?php echo $group['id']; ?></td>
				<td class="grid_cell">
				<?php if (!in_array(intval($group['id']), $in_groups)) { ?>
					<a href="<?php echo BASE_URL; ?>user/groups/<?php echo $info['id']; ?>/<?php echo $group['id']; ?>/1" class="grid_link">
						<img src="<?php echo PUBLIC_URL; ?>images/plus.png" style="display:block; border:none;" alt="Add to group" title="Add to group" />
					</a>
				<?php } else { ?>
					<a href="<?php echo BASE_URL; ?>user/groups/<?php echo $info['id']; ?>/<?php echo $group['id']; ?>/2" class="grid_link">
						<img src="<?php echo PUBLIC_URL; ?>images/minus.png" style="display:block; border:none;" alt="Remove from group" title="Remove from group" />
					</a>
				<?php } ?>
				</td>
				<td class="grid_cell">
					<?php echo $group['name']; ?>
				</td>
			</tr>
		<?php } ?>
	</table>
<?php } else { ?>
	No groups found
<?php } ?>
</div>